import request from '@/utils/request'

// 获取药品单位
export function getDrugUnitIndex(params) {
    return request({
        url: `/drug/drugUnitIndex`,
        method: 'GET',
        params
    })
}

// 获取药品种类
export function getDrugSpeciesIndex(params) {
    return request({
        url: `/drug/drugSpeciesIndex`,
        method: 'GET',
        params
    })
}
//获取药品分类
export function getCategoryIndex(params) {
    return request({
        url: `/drug/categoryIndex`,
        method: 'GET',
        params
    })
}



// 修改药品分类状态
export function getCategorySet(params) {
    return request({
        url: `/drug/categorySet`,
        method: 'POST',
        params
    })
}
// 添加保存药品分类
export function getCategorySave(params) {
    return request({
        url: `/drug/categorySave`,
        method: 'POST',
        params
    })
}
// 删除药品分类
export function getCategoryDel(params) {
    return request({
        url: `/drug/categoryDel`,
        method: 'POST',
        params
    })
}

// 修改药品单位
export function getDrugUnitSet(params) {
    return request({
        url: `/drug/drugUnitSet`,
        method: 'POST',
        params
    })
}

// 修改药品种类状态
export function getDrugSpeciesSet(params) {
    return request({
        url: `/drug/drugSpeciesSet`,
        method: 'POST',
        params
    })
}



// 保存药品种类
export function getDrugSpeciesSave(params) {
    return request({
        url: `/drug/drugSpeciesSave`,
        method: 'POST',
        params
    })
}

// 保存药品单位
export function getDrugUnitSave(params) {
    return request({
        url: `/drug/drugUnitSave`,
        method: 'POST',
        params
    })
}

// 剂型列表
export function getDosageList(params) {
    return request({
        url: `/dosage/getList`,
        method: 'GET',
        params
    })
}

// 给药途径列表
export function getDrug_channel(params) {
    return request({
        url: `/drug_channel/getList`,
        method: 'GET',
        params
    })
}

// 库房管理
export function getDrug_storeIndex(params) {
    return request({
        url: `/drug_store/index`,
        method: 'GET',
        params
    })
}

// 获取频次列表
export function getCommon(params) {
    return request({
        url: `/common/getPinci`,
        method: 'GET',
        params
    })
}

// 药房列表
export function getDrug_house(params) {
    return request({
        url: `/drug_house/index`,
        method: 'GET',
        params
    })
}

// 保存库房
export function getDrug_storeSave(params) {
    return request({
        url: `/drug_store/save`,
        method: 'POST',
        params
    })
}

// 保存药房
export function getDrug_houseSave(params) {
    return request({
        url: `/drug_house/save`,
        method: 'POST',
        params
    })
}

// 库房修改
export function getDrug_storeSetStatus(params) {
    return request({
        url: `/drug_store/setStatus`,
        method: 'POST',
        params
    })
}

// 药房修改
export function getDrug_houseSetStatus(params) {
    return request({
        url: `/drug_house/setStatus`,
        method: 'POST',
        params
    })
}

// 创建剂型
export function getDosageCreate(params) {
    return request({
        url: `/dosage/create`,
        method: 'POST',
        params
    })
}

// 剂型编辑
export function getDosageUpdate(params) {
    return request({
        url: `/dosage/update`,
        method: 'POST',
        params
    })
}

// 给药途径增加
export function drug_channelCreate(params) {
    return request({
        url: `/drug_channel/create`,
        method: 'POST',
        params
    })
}

// 给药途径编辑
export function drug_channelUpdate(params) {
    return request({
        url: `/drug_channel/update`,
        method: 'POST',
        params
    })
}

// 保存频次
export function commonCreatePinci(params) {
    return request({
        url: `/common/createPinci`,
        method: 'POST',
        params
    })
}

// 编辑频次
export function commonSavePinci(params) {
    return request({
        url: `/common/savePinci`,
        method: 'POST',
        params
    })
}

// 诊断字典
export function dict_dataGetDiseaseDict(params) {
    return request({
        url: `/dict_data/getDiseaseDict`,
        method: 'GET',
        params
    })
}


// 获取药品列表
export function drugDrugIndex(params) {
    return request({
        url: `/drug/drugIndex`,
        method: 'GET',
        params
    })
}

// 诊断修改
export function dict_dataSetDiseaseDict(params) {
    return request({
        url: `/dict_data/setDiseaseDict`,
        method: 'POST',
        params
    })
}

// 剂型删除
export function dosageDelete(params) {
    return request({
        url: `/dosage/delete`,
        method: 'POST',
        params
    })
}

// 给药途径删除
export function drug_channelDelete(params) {
    return request({
        url: `/drug_channel/delete`,
        method: 'POST',
        params
    })
}

// // 添加药品字典
// export function drugDrugDictSave(params) {
//   return request({
//     url: `/drug/drugDictSave`,
//     method: 'POST',
//     params
//   })
// }


// 添加药品字典
export function drugDrugSave(params) {
    return request({
        url: `/drug/drugSave`,
        method: 'POST',
        params
    })
}

// 费用列表
export function service_feeCategoryIndex(params) {
    return request({
        url: `/service_fee/categoryIndex`,
        method: 'get',
        params
    })
}

// 保存费用列表
export function service_feeCategorySave(params) {
    return request({
        url: `/service_fee/categorySave`,
        method: 'POST',
        params
    })
}

// 修改费用状态
export function service_feeCategorySet(params) {
    return request({
        url: `/service_fee/categorySet`,
        method: 'POST',
        params
    })
}

// 获取门诊慢特病
export function getChronicDisease(params) {
    return request({
        url: `/drug_ybdict/getChronicDisease`,
        method: 'GET',
        params
    })
}
// 获取病种目录
export function getDiseaseSpecieDict(params) {
    return request({
        url: `/drug_ybdict/getDiseaseSpecieDict`,
        method: 'GET',
        params
    })
}

// 获取诊疗项目列表
export function service_feeServiceIndex(params) {
    return request({
        url: `/service_fee/serviceIndex`,
        method: 'GET',
        params
    })
}

// 添加编辑项目字典
export function service_feeSaveService(params) {
    return request({
        url: `/service_fee/saveService`,
        method: 'POST',
        params
    })
}

// 修改项目字典状态
export function service_feeSetService(params) {
    return request({
        url: `/service_fee/setService`,
        method: 'POST',
        params
    })
}

// 修改药品状态
export function drugDrugSet(params) {
    return request({
        url: `/drug/drugSet`,
        method: 'POST',
        params
    })
}


// 删除药品状态
export function drugDrugDel(params) {
    return request({
        url: `/drug/drugDel`,
        method: 'POST',
        params
    })
}
// 删除药品状态
export function delService(params) {
    return request({
        url: `/service_fee/delService`,
        method: 'POST',
        params
    })
}


// 保存诊断字典
export function dict_dataSaveDiseaseDict(params) {
    return request({
        url: `/dict_data/saveDiseaseDict`,
        method: 'POST',
        params
    })
}

// 根据分组获取分组下的字典值
export function dict_dataDictIndex(params) {
    return request({
        url: `/dict_data/dictIndex`,
        method: 'GET',
        params
    })
}

// 药品详情
export function drugDrugShow(params) {
    return request({
        url: `/drug/drugShow`,
        method: 'GET',
        params
    })
}

// 树形结构
export function dict_dataGroupIndex(params) {
    return request({
        url: `/dict_data/groupIndex`,
        method: 'GET',
        params
    })
}

// 添加基础字典
export function dict_dataStore(params) {
    return request({
        url: `/dict_data/store`,
        method: 'POST',
        params
    })
}

// 编辑基础字典
export function dict_dataSave(params) {
    return request({
        url: `/dict_data/save`,
        method: 'POST',
        params
    })
}


// 删除基础字典
export function dict_dataDel(params) {
    return request({
        url: `/dict_data/del`,
        method: 'POST',
        params
    })
}

// 导出药品
export function drugExportDrug(params) {
    return request({
        url: `/drug/exportDrug`,
        method: 'get',
        params,
    })
}

// 导出诊疗服务
export function service_feeExportService(params) {
    return request({
        url: `/service_fee/exportService`,
        method: 'get',
        params,
    })
}

// 目录对照上传
export function upCateLog(params) {
    return request({
        url: `/drug/upCateLog`,
        method: 'POST',
        params,
    })
}


// 目录对照上传撤销
export function backCateLog(params) {

    return request({
        url: `/drug/backCateLog`,
        method: 'POST',
        params,
    })
}

// 删除删除药品单位
export function drugUnitDel(params) {
    return request({
        url: `/drug/drugUnitDel`,
        method: 'POST',
        params,
    })
}


// 删除删除药品种类
export function drugSpeciesDel(params) {
    return request({
        url: `/drug/drugSpeciesDel`,
        method: 'POST',
        params,
    })
}

// 删除删除药品分类
export function categoryDel(params) {
    return request({
        url: `/drug/categoryDel`,
        method: 'POST',
        params,
    })
}

// 删除频次
export function deletePinci(params) {
    return request({
        url: `/common/deletePinci`,
        method: 'POST',
        params,
    })
}

// 编辑嘱托新增
export function doctor_entrustSave(params) {
    return request({
        url: `/doctor_entrust/save`,
        method: 'POST',
        params,
    })
}

// 编辑嘱托新增
export function doctor_entrustGetList(params) {
    return request({
        url: `/doctor_entrust/getList`,
        method: 'GET',
        params,
    })
}
export function doctor_entrustDelete(params) {
    return request({
        url: `/doctor_entrust/delete`,
        method: 'POST',
        params,
    })
}
// 查看组合项
export function getServiceGroup(params) {
    return request({
        url: `/service_fee/getServiceGroup`,
        method: 'GET',
        params,
    })
}


//获取组合项详情
export function getServiceGroupDetail(params) {
    return request({
        url: `/service_fee/getServiceGroupDetail`,
        method: 'GET',
        params,
    })
}

//删除组合项
export function deleteServiceGroup(params) {
    return request({
        url: `/service_fee/deleteServiceGroup`,
        method: 'POST',
        params,
    })
}
//新增组合项
export function saveServiceGroup(params) {
    return request({
        url: `/service_fee/saveServiceGroup`,
        method: 'POST',
        params,
    })
}
//获取药品批号
export function getDrugItem(params) {
    return request({
        url: `/h_pharmacy/getDrugItem`,
        method: 'POST',
        params,
    })
}
//获取医保药品
export function getCate1301(params) {
    return request({
        url: `/drug_ybdict/getCate1301`,
        method: 'POST',
        params,
    })
}

//获取医疗项目
export function getCate1305(params) {
    return request({
        url: `/drug_ybdict/getCate1305`,
        method: 'POST',
        params,
    })
}
//获取医疗耗材
export function getCate1306(params) {
    return request({
        url: `/drug_ybdict/getCate1306`,
        method: 'POST',
        params,
    })
}
//获取计价
export function project_getList(params) {
    return request({
        url: `/automatic_project/getList`,
        method: 'GET',
        params,
    })
}
//保存计价项目
export function project_save(params) {
    return request({
        url: `/automatic_project/save`,
        method: 'POST',
        params,
    })
}
//删除计价
export function project_delete(params) {
    return request({
        url: `/automatic_project/delete`,
        method: 'POST',
        params,
    })
}
//卫材列表
export function material_dict_index(params) {
    return request({
        url: `/material_dict/index`,
        method: 'GET',
        params,
    })
}
//卫材添加
export function material_dict_save(params) {
    return request({
        url: `/material_dict/save`,
        method: 'POST',
        params,
    })
}
//卫材状态
export function material_dict_unitDel(params) {
    return request({
        url: `/material_dict/unitDel_1634635149092`,
        method: 'POST',
        params,
    })
}
//卫材删除
export function material_dict_del(params) {
    return request({
        url: `/material_dict/del`,
        method: 'POST',
        params,
    })
}
//卫材详情
export function material_dict_show(params) {
    return request({
        url: `/material_dict/show`,
        method: 'POST',
        params,
    })
}